<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>旋转 缩放</title>
    <style>
        .box::after {
            content: '';
            display: block;
            height: 0;
            clear: both;
        }
        .box1 {
            float: left;
            overflow: hidden;
            width: 100px;
            height: 100px;
            background-color: pink;
            margin: 50px auto;
        }
        .box1::before {
            content: 'aa';
            display: block;
            width: 100%;
            height: 100%;
            background-color: lightblue;
            transform: rotate(90deg);
            transform-origin: left bottom;
            transition: all .5s;
        }
        .box1:hover::before {
            transform: rotate(0deg);
        }
        .box2 {
            height: 100px;
            width: 100px;
            background-color: lightblue;
            transition: all .5s;
        }
        .box2:hover {
            transform: scale(.5, .5);
        }
        .box3 {
            height: 100px;
            width: 100px;
            background-color: aqua;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="box1"></div>
        <div class="box1"></div>
        <div class="box1"></div>
        <div class="box1"></div>
    </div>
    <div class="box2"></div>
    <div class="box3"></div>
</body>
</html>